//
//  CustomLayout.m
//  乐团
//
//  Created by tarena1 on 14-11-19.
//  Copyright (c) 2014年 seven. All rights reserved.
//

#import "CustomLayout.h"

@implementation CustomLayout



- (id) init{
    
    self = [super init];
    if (self) {
        
        [self constructCellSize];
        
    }
    return self;
    
}


- (id) initWithCoder:(NSCoder *)aDecoder {
    
    self = [super initWithCoder:aDecoder];
    
    if (self) {
        
        [self constructCellSize];
    }
    
    return self;
    
}


#pragma mark --Construct Cell Size

#define ITEM_SIZE 93.0
- (void) constructCellSize {
    
    
    self.itemSize = CGSizeMake(ITEM_SIZE, ITEM_SIZE);
    
    self.minimumInteritemSpacing = 10.0;
    self.minimumLineSpacing = 10.0;
    self.sectionInset = UIEdgeInsetsMake(10, 10, 10, 10);
    
}


- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {
    
    return YES;
}

@end
